package gui;

import java.awt.Dimension;
import java.awt.Rectangle;

import javax.swing.JLayeredPane;
import javax.swing.Scrollable;

public class MainPanel extends JLayeredPane implements Scrollable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public Dimension getPreferredScrollableViewportSize() {
		
		return this.getPreferredSize();
	}

	@Override
	public int getScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2) {
	
		return 32;
	}

	@Override
	public boolean getScrollableTracksViewportHeight() {
	
		return false;
	}

	@Override
	public boolean getScrollableTracksViewportWidth() {
		
		return false;
	}

	@Override
	public int getScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2) {
		
		return 32;
	}

}
